import { createSSRApp } from 'vue'
// import pinia from './stores'
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)

  // app.use(pinia)
  const pinia = createPinia()
  pinia.use(persist)
  app.use(pinia)

  return {
    app,
  }
}
